﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Controls="clr-namespace:Snipps.Controls">


    <Style TargetType="{x:Type Controls:Overlay}">
        <Setter Property="IsTabStop" Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:Overlay}">
                    <Grid>
                        <AdornerDecorator>
                            <ContentPresenter x:Name="PART_MainContent"
                                              Content="{TemplateBinding MainContent}"
                                              ContentTemplate="{TemplateBinding MainContentTemplate}" />
                        </AdornerDecorator>
                        <Grid x:Name="PART_Overlay">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="5*" />
                            </Grid.ColumnDefinitions>
                            <ContentPresenter x:Name="PART_OverlayContent"
                                              Grid.Column="1"
                                              Content="{TemplateBinding OverlayContent}"
                                              ContentTemplate="{TemplateBinding OverlayContentTemplate}" />
                            <Border x:Name="PART_MainContentPreview"
                                    Grid.Column="0"
                                    Background="{DynamicResource DisableBrush}"
                                    Opacity="0.5" />
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>